package club.itstudio.IContainer.entity;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class User {
    public int      id;
    public String   userName;
    public String   password;
    public int      userType;       // 0 = admin, 1 = teacher, 2 = student
    public long     lastLoginTime;
    public long     createdTime;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", userType=" + userType +
                ", lastLoginTime=" + lastLoginTime +
                ", createdTime=" + createdTime +
                '}';
    }
}

